﻿using Shop.RemoteModel;
using SqlSugar;

namespace Shop.Model.DB
{
    [SugarTable("Shop_ActivityDiscount")]
    public class DBShopActivityDiscount
    {
        [SugarColumn(IsPrimaryKey = true)]
        public long Id { get; set; }

        public long ActivityId { get; set; }

        /// <summary>
        /// 是否包邮
        /// </summary>
        public bool IsFreeMail { get; set; }
        /// <summary>
        /// 优惠门槛
        /// </summary>
        public DiscountThreshold Threshold { get; set; }

        /// <summary>
        /// 优惠内容
        /// </summary>
        public DiscountContent Mode { get; set; }

        /// <summary>
        /// 门槛价
        /// </summary>
        public decimal? ThresholdPrice { get; set; }

        /// <summary>
        /// 门槛数
        /// </summary>
        public int? ThresholdNum { get; set; }

        /// <summary>
        /// 减多少
        /// </summary>
        public decimal? ReducePrice { get; set; }

        /// <summary>
        /// 减免总价
        /// </summary>
        public decimal? ReduceTotalPrice { get; set; }

        /// <summary>
        /// 加多少元
        /// </summary>
        public decimal? AddPrice { get; set; }
        /// <summary>
        /// 送多少
        /// </summary>
        public int? GiveNum { get; set; }

        /// <summary>
        /// 优惠卷
        /// </summary>
        public long? CouponId { get; set; }

        /// <summary>
        /// 赠品ID
        /// </summary>
        public long? GiveSkuId { get; set; }
    }
}
